//
//  STTools_MessageListener.h
//  Marriage
//
//  Created by coder on 2018/8/8.
//  Copyright © 2018年 stoneobs@icloud.com. All rights reserved.
//

#import <Foundation/Foundation.h>
@class STTools_MessageListener;
@protocol TMReciveMessageDelegate <NSObject>
@optional;
- (void)onRCIMReceiveMessage:(RCMessage *)message left:(int)left;
//消息被撤回
- (void)onRCIMMessageRecalled:(long)messageId;
@end
/************ 全局监听 ******************/
// [[RCIM sharedRCIM] setReceiveMessageDelegate:STTools_MessageListener.manger];
@interface STTools_MessageListener : NSObject<RCIMReceiveMessageDelegate>
+ (STTools_MessageListener*)manger;
- (void)addDelegate:(NSObject<TMReciveMessageDelegate>*)delegate;

- (void)onRCIMReceiveMessage:(RCMessage *)message
                        left:(int)left;

@end
